//package com.xiaoman.pet;
//
//import com.intellij.openapi.startup.ProjectActivity;
//import com.intellij.openapi.project.Project;
//import com.intellij.openapi.util.Disposer;
//import kotlin.Unit;
//import kotlin.coroutines.Continuation;
//import org.jetbrains.annotations.NotNull;
//import org.jetbrains.annotations.Nullable;
//
//public class PetPlugin implements ProjectActivity {
//    @Nullable
//    @Override
//    public Object execute(@NotNull Project project, @NotNull Continuation<? super Unit> continuation) {
//        // 加载配置
//        PetSettings settings = PetSettings.getInstance(project);
//        int moveInterval = settings.getState().moveInterval;
//
//        // 创建宠物窗口
//        PetWindow petWindow = new PetWindow();
//        petWindow.setLocation(500, 500);
//        petWindow.setVisible(true);
//        petWindow.startRandomMove(moveInterval);
//
//        // 注册销毁钩子
//        Disposer.register(project, petWindow::dispose);
//
//        return null;
//    }
//}
